//本地测试双向绑定数据
DZApp.controller("feedback_new",function($scope,$http, httpUtils){

    $scope.shanchu = function(index){
        //删除选定的对象
        $scope.mynews.splice($scope.currentIndex,1);
    };
	
	$scope.baocun = function(){
		
		alert();
    	$http({
			method: 'POST',
			url: '/appserver/manage/appFeedBack/AppFeedbackUpdate',
			data: $.param($scope.Add),
			headers: {
				'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
			},
			cache: false
		}).success(function(data) {
			console.log(data);
			$scope.Add = data.data
		});
    }
	
	$http({
		method: 'POST',
		url: '/appserver/manage/appFeedBack/AppFeedbackSelect',
		data: $.param({user_id:'123',create_time:'2016-06-24',user_phone:'13982245679',content:'不太会用',dispose_flag:'处理',oper_id:'111',valid_flag:'有效'}),
		headers: {
			'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
		},
		cache: false
	}).success(function(data) {
		console.log(data);
		$scope.mynews = data.data
	});

	$scope.gengxing = function(){
		this.mynews = 'new mynews';
	}
	
});
